﻿using Core.Messages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Share.Enterprise.Api
{
    public interface ICrudApiController<TId, TDto, TQuery> : ICrudApiController<TId, TDto, TDto, TQuery>
    {     
    }

    public interface ICrudApiController<TId, TDto, TChildDto, TQuery>
    {     
        TDto Get(TId id);
        Response<TId> Post(TChildDto dto);               
        Response Put(TId id, TChildDto dto);
        Response Delete(TId id);
    }
}
